<?php /* Template Name: Blank - FAQ Cat DP */ ?>

<?php include ('header-blank.php'); ?>

<style>
	body { width: 400px; background-color: #ffffff; }
		.blankcatframe-postblock { width: 400px; margin: 0px; }
			.blankcatframe-postblock:hover { background-color: #f2f2f2; }
			.blankcatframe-postblock a, .blankcatframe-postblock a:visited { display: block; width: 380px; padding: 10px; margin: 0px; text-decoration: none; }
				.blankcatframe-postblock a img, .blankcatframe-postblock img { width: 100px; float: left: margin: 0px; margin-right: 20px; }
				.blankcatframe-postblock a p { text-decoration: none; clear: none; }
				.blankcatframe-postblock a p.title { font-size: 12px; font-weight: bold; color: #e77d1d; text-decoration: none; }
					.blankcatframe-postblock a:hover p.title { color: #002d55; }
				.blankcatframe-postblock a p.link { display: block; text-align: center; font-size: 12px; width: 150px; float: right; height: 30px; line-height: 30px; background-color: #e77d1d; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; color: #ffffff; text-decoration: none; }
					.blankcatframe-postblock a:hover p.link { background-color: #002d55; }
</style>

<div style="margin-left: -8px; margin-top: -8px;">
<?php
$catquery = new WP_Query( 'cat=4&posts_per_page=3' );
while($catquery->have_posts()) : $catquery->the_post();
?>
	<div class="blankcatframe-postblock">
    	<a href="<?php the_permalink(); ?>" target="_blank" title="Click For More">
    		<?php if(has_post_thumbnail()) { echo the_post_thumbnail();
				} elseif (get_post_meta($post->ID, "MainImg", true)) { include('pr-thumb-image-2.php') ;
				} else {
					include('pr-thumb-image.php') ;
				}
			?>
            <p class="title"><?php the_title(); ?></p>
            <div style="width: 380px; height: 0px; clear: both;"></div>
        </a>
        <div style="width: 400px; height: 0px; clear: both;"></div>
    </div>
<?php endwhile; ?>
</div>

<?php include ('footer-blank.php'); ?>